﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TimeAlert
{
    public class Storage
    {
        public List<Exam> ExamList { get; set; }
        public List<Stage> StageList { get; set; }
    }

    public class Exam
    {
        public string Id { get; set; }
        public string ExamName { get; set; }

        [JsonConverter(typeof(CustomDateTimeConverter))]
        public DateTime StartTime { get; set; }
        [JsonConverter(typeof(CustomDateTimeConverter))]
        public DateTime EndTime { get; set; }
    }

    public class Stage
    {
        public string Id { get; set; }
        public string ExamId { get; set; }
        public string Name { get; set; }
        /// <summary>
        /// 1:开始
        /// -1：结束
        /// </summary>
        public int BeginOrEnd { get; set; }
        /// <summary>
        /// 具体的分钟数
        /// </summary>
        public int Minutes { get; set; }
        /// <summary>
        /// 音轨的路径
        /// </summary>
        public string Audio { get; set; }
    }
}

